package cn.com.generaldata.os.pojo;

import com.sun.xml.internal.bind.CycleRecoverable;

public class UnitRelation implements java.io.Serializable, CycleRecoverable {

	private static final long serialVersionUID = -6404314064704214463L;

	private String id;
	private String pid;
	private String cid;
	private Integer depth;

	public UnitRelation(String id, String pid, String cid, Integer depth) {
		super();
		this.id = id;
		this.pid = pid;
		this.cid = cid;
		this.depth = depth;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public Integer getDepth() {
		return depth;
	}

	public void setDepth(Integer depth) {
		this.depth = depth;
	}

	public UnitRelation() {
		super();
	}

	@Override
	/**
	 * 解决CXF循环引用问题.
	 * @param arg0
	 * @return
	 */
	public Object onCycleDetected(Context arg0) {
		UnitRelation temp = new UnitRelation();
		temp.setId(id);
		return temp;
	}

}
